package com.hison.controller;

import com.hison.service.CategoryService;
import com.hison.util.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: CategoryController
 * @Descripiton: 文章分类控制类
 * @Author: 小郑
 * @Date： 2024/1/12 15:27
 * @Version：1.8
 **/
@RestController
@RequestMapping("/category")
@Api(value = "分类控制类",description = "分类控制类`")
public class CategoryController {

    @Autowired
    private CategoryService  categoryService;

    @ApiOperation(value = "分类",notes = "查询分类标签",produces = "application/json")
    @GetMapping("/getCategoryList")
    public ResponseResult  getCategoryList(){
        return  categoryService.getCategoryList();
    }

}